package com.crpc.config;

import com.crpc.common.crpcEnum.RegistryEnums;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "spring.rpc.registry")
public class RegisterProperties {
    @Value("${registryHost:127.0.0.1}")
    private String host;
    @Value("${registryPort:2181}")
    private String port;
    @Value("${registryType:ZOOKEEPER}")
    private RegistryEnums registryType;
}
